package com.share.payment.service;

import com.share.common.core.domain.R;
import com.share.order.domain.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 订单服务Feign客户端
 *
 * @author share
 * @date 2024-04-16
 */
@FeignClient(contextId = "orderInfoApiClient", value = "share-order")
public interface OrderInfoApiClient {

    /**
     * 根据订单号查询订单信息
     *
     * @param orderNo 订单号
     * @return 订单信息
     */
    @GetMapping("/orderInfo/getByOrderNo/{orderNo}")
    R<OrderInfo> getByOrderNo(@PathVariable("orderNo") String orderNo);

    @PutMapping("/orderInfo/update")
    public R updateOrderInfo(OrderInfo orderInfo);
} 